<?php

/**
 * administration actions.
 *
 * @package    appcemhti
 * @subpackage administration
 * @author     Steve Cancès
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class administrationActions extends sfActions
{
    /**
    * Executes index action
    *
    * @param sfRequest $request A request object
    */
    public function executeIndex(sfWebRequest $request)
    {
        $this->countUsers = Doctrine_Core::getTable('sfGuardUser')->count();
        
        $this->countBalayages = Doctrine_Core::getTable('balayage')->count();
        $this->countElements = Doctrine_Core::getTable('element')->count();
        $this->countRegulations = Doctrine_Core::getTable('regulationTemperature')->count();
        $this->countControleAtmosphere = Doctrine_Core::getTable('controleAtmosphere')->count();
        $this->countTypeTraitement = Doctrine_Core::getTable('typeTraitement')->count();
        
        $this->countMethodeMesure = Doctrine_Core::getTable('methodeMesure')->count();
        $this->countParametreExplore = Doctrine_Core::getTable('parametreExplore')->count();
        
        $this->countMatieres = Doctrine_Core::getTable('matiere')->count();
        $this->countFournisseurs = Doctrine_Core::getTable('fournisseur')->count();
        $this->countEtatEchantillon = Doctrine_Core::getTable('etatEchantillon')->count();
        
        $this->countLieux = Doctrine_Core::getTable('lieu')->count();
    }
}
